import tkinter as tk
from PIL import Image, ImageTk
win = tk.Tk()
win.title("Python图片爬取程序")
canvas = tk.Canvas(win, width=600, height=400, bd=0, highlightthickness=0)
impath='timg.jpg'
img= Image.open(impath)
photo = ImageTk.PhotoImage(img)
canvas.create_image(100, 10, image=photo)
canvas.pack()
win.mainloop()